/*
Realistic Unit Modification v4.0 Dialog 
v4.0.0.1 [ALPHA]
Concept & Development by Draper & Raps | [VRC]
*/

/* RUM Assets choose either action menu or communication menu to access scripts. */

_man = player;

/* Option 1: (Direct Action Menu) */
// _man addAction ["<img color='#006CB9' size='1.3' shadowColor='#FFFFFF'  image='a3\ui_f\data\map\Markers\NATO\b_art.paa' /><t color='#006CB9'> Artillery</t>",(RUM_PATH+"Arty\RUM_Arty.sqf"),[], 5, false, false, "", "_target == player"];
// _man addAction ["<img color='#006CB9' size='1.3' shadowColor='#FFFFFF' image='a3\ui_f\data\map\Markers\NATO\b_plane.paa' /><t color='#006CB9'> Fixed Wing Attack</t>",(RUM_PATH+"Fxd\RUM_Fxd.sqf"),[], 4, false, false, "", "_target == player"];
// _man addAction ["<img color='#006CB9' size='1.3' shadowColor='#FFFFFF' image='a3\ui_f\data\map\Markers\NATO\b_air.paa' /><t color='#006CB9'> Rotor Wing Attack</t>",(RUM_PATH+"AHel\RUM_AHel.sqf"),[],3, false, false, "", "_target == player"];
// _man addAction ["<img color='#006CB9' size='1.3' shadowColor='#FFFFFF' image='a3\ui_f\data\map\Markers\NATO\b_air.paa' /><t color='#006CB9'> Rotor Wing Transport</t>",(RUM_PATH+"Transport\RUM_THel.sqf"),[], 2, false, false, "", "_target == player"];
// _man addAction ["<img color='#006CB9' size='1.3' shadowColor='#FFFFFF' image='a3\ui_f\data\map\Markers\NATO\b_support.paa' /><t color='#006CB9'> Logistics</t>",(RUM_PATH+"Supply\RUM_SUP.sqf"),[], 1, false, false, "", "_target == player"];

/* Option 2: (Communication Menu) */
[] execVM (RUM_PATH+"Common\commandmenu.sqf");
	
/* note: "1" = asset type on, "0" = asset type off, should be able to change during mission. */
RUM_COM_Artillery = "1";
RUM_COM_Fixed = "1";
RUM_COM_Attack = "1";
RUM_COM_Transport = "1";
RUM_COM_Supply = "1";

/* Option 3: (Radio - unit needs defined radio to access the menu) */
[player,"arty","fixed","ahelo","thelo","supply"] execVM RUM_PATH+"Common\useRadio.sqf";

/* Event Handler to wait for a respawn action to reinit the RUM menu for the player */
RUM_fn_respawn = Compile preprocessFileLineNumbers "RUM\Common\useRadio.sqf";
_playerRespawn = player addEventHandler ["Respawn", {_this Call RUM_fn_respawn;}]; 

/* one or the other, not both */
/* for use with just the non LHD version of the mission file */
	 [] execVM (RUM_PATH+"RUM_Settings.sqf");
	
/* for use with the LHD and the LHD mission file */
	// [] execVM (RUM_PATH+"RUM_Settings_LHD.sqf");
	
/* END RUM Assets */
